import request from "@/utils/request";
export function add(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/familymember/"+data.elderlyCode,
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/familymember/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function del(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/familymember/"+params.elderlyCode+'/'+params.contactNumber,
    method: 'DELETE',
    params

  });

}
//修改家庭成员

export function resvre(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/modityfamilymember",
    method: 'put',
    data

  });

}
